# 文件1 = open("D:/数据.txt", "r", encoding="UTF-8")
# 文件2 = open("D:/数据1.txt", "a", encoding="UTF-8")
#
# # 数据 = 文件1.readlines()
# # print(数据)
#
# for 元素 in 文件1.readlines():
#     lb = 元素.split(",")
#     文件2.write(f"{lb[2]}\n")
#
# 文件1.close()
# 文件2.close()

文件3 = open("D:/数据1.txt", "r", encoding="UTF-8")
i = 0
for 元素 in 文件3.readlines():
    i += int(元素)

print(i)
文件3.close()